******************************************************************************************************
******************************************************************************************************											    ****
*            Baturo and Gray.The Incentives of Leaders in International Organizations: ***  
***       Evidence from the UN General Assembly. International Interactions       *                                                                                                  *                                                                             *
******************************************************************************************************
******************************************************************************************************

ANALYSES ARE IN R3.5.2 AND STATA 16.1 (Mac OS 12.6.2)

** Change working directory to ~/ReplicationFolder **

REPLICATION:

1) To replicate the results in the paper, run Analyses.do in Stata.
2) To replicate supplementary appendix, run Analyses_appendix.do in Stata.
3) To replicate Figure 1 in the paper, run Figure1_map.R in R. 


4) To also replicate construction of estimation file for the above, first run:
make_estimation_file.do in Stata (to combine speakers data with explanatory variables, assign labels, create new indicator variables, etc). This creates estimation_file.dta, as well as splines.dta and leaders_map.dta (for Table 3 and Figure 1)


FILES IN THE MAIN DIRECTORY:

- 01_readme.txt - this directory file.
- Analyses.do contains commands to replicate the main analyses.
- Analyses_appendix.do contains commands to replicate supplementary appendix analyses.
- Figure1_map.R contains commands to replicate Figure 1.
- estimation_file.dta is the main Stata data file for the analyses.
- make_estimation_file.do contains commands to create estimation_file.dta

FOLDERS IN THE MAIN DIRECTORY:

- vars folder contains input files for the analyses: data files with the explanatory variables to be included in estimation_file.dta when executing make_estimation_file.do, as explained above. 
- output folder includes all figures included in the paper as well as output files, i.e., Analyses.log (log files) from Stata with output results. 


** the end **